<template>
    <div class = 'editDoctor-page'>
        <addAndEditDoctor v-if="type != '2'" mode="edit"/>
        <addAndEditPharmacy v-if="type === '2'" mode="edit"/>
    </div>
</template>
<script>
import addAndEditDoctor from "./components/addAndEditDoctor";
import addAndEditPharmacy from "./components/addAndEditPharmacy";
export default {
    components: {
        addAndEditDoctor,
        addAndEditPharmacy
    },
    data () {
        return {
            type: this.$route.query.type
        }
    },
    created () {
        let breadList = [
        { path: "/index", title: "首页" },
        {
            path: "/index/maintain/indexManagement/index",
            title: "医生端运营"
        },
        {
            path: "/index/doctorOperation/doctorReview/list",
            title: "认证管理"
        }
        ];
        this.$emit("changeBreadList", breadList);
    },
    mounted () {
    },
    methods: {

    }
}
</script>
<style lang="less" scoped>
.editDoctor-page {
    // margin-left: 1%;
    // padding: 10px;
    // width: 98%;
    // background: #ffffff;
    // box-sizing: border-box;
    // font-size:14px
}
</style>

